"""
@author: wy
@file: con_mysql.py
@time: 2025/1/8 15:22
"""
import pymysql
from config import *
def con_mysql():
    conn = pymysql.connect(
        host=DB_HOST,
        user=DB_USER,
        password=DB_PASSWD,
        port=DB_PORT,
        db=DB
    )
    return conn
